<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="恢复Informix/GBase 8s">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="informix-0065.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="informix-0068">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>恢复Informix/GBase 8s</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="informix-0068"></a><a name="informix-0068"></a>

<h1 class="topictitle1">恢复Informix/GBase 8s</h1>
<div><p>当需要对已备份的Informix/GBase 8s实例进行恢复时，可以参考本节恢复Informix/GBase 8s实例至原位置或新位置。</p>
<div class="section"><h4 class="sectiontitle">背景信息</h4><p>支持使用备份副本、复制副本、归档副本进行恢复。支持恢复至原位置（复制副本不支持恢复至原位置，复制副本的归档副本不支持恢复至原位置）或新位置。</p>
</div>
<div class="section"><h4 class="sectiontitle">前提条件</h4><p>恢复前需关闭Informix/GBase 8s数据库，若Informix/GBase 8s集群类型为HDR集群，主备节点均需关闭数据库。</p>
<ol><li>使用PuTTY工具，以root用户登录Informix/GBase 8s数据库主机。<ul><li>对于Informix数据库主机，执行<strong>su - informix</strong>命令切换为数据库用户。</li><li>对于GBase 8s数据库主机，执行<strong>su - gbasedbt</strong>命令切换为数据库用户。</li></ul>
</li><li>执行<strong>source ~/.bash_profile</strong>命令，配置环境变量。</li><li>执行<strong>onstat -l</strong>命令，查看Informix/GBase 8s数据库状态。<p>若回显中出现On-Line (Prim)、Read-Only (sec)或On-Line，则表示数据库未关闭，请继续执行后续操作关闭数据库。</p>
<p><span><img src="zh-cn_image_0000002164771566.png"></span></p>
<div class="note"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><ul><li>Informix/GBase 8s单机未关闭数据库显示On-Line。</li><li>Informix/GBase 8s集群主节点未关闭数据库显示On-Line (Prim)。</li><li>Informix/GBase 8s集群备节点未关闭数据库显示Read-Only (sec)。</li></ul>
</div></div>
</li><li>执行<strong>onmode -ky</strong>命令，关闭数据库。</li></ol>
</div>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><ol><li id="informix-0068__zh-cn_topic_0000001349067713_zh-cn_topic_0000001311215337_zh-cn_topic_0000001140163709_li0198134611381"><span>选择<span class="uicontrol" id="informix-0068__zh-cn_topic_0000002199964685_uicontrol12513913152710">“<span id="informix-0068__zh-cn_topic_0000002199964685_text751371311271">数据利用</span> &gt; <span id="informix-0068__zh-cn_topic_0000002199964685_text55131513142712">副本数据</span> &gt; <span id="informix-0068__zh-cn_topic_0000002199964685_text1637173717498">数据库</span> &gt; Informix/GBase 8s”</span>。</span></li><li id="informix-0068__li888616341964"><span>您可以以Informix/GBase 8s实例资源维度或以副本维度查找副本，本节以资源维度为例进行说明。</span><p><p id="informix-0068__zh-cn_topic_0000001397321757_p624620403810">在<span class="uicontrol" id="informix-0068__uicontrol816218529113">“<span id="informix-0068__text106576202129">资源</span>”</span>页签，根据资源名称查找到需要恢复的资源，并单击资源名称。</p>
</p></li><li id="informix-0068__li740145183717"><span>选择副本恢复的资源。</span></li><li><span>指定副本或指定时间点进行恢复。</span><p><p id="informix-0068__p114181621619">您可以指定某个副本或两个副本之间的任意时间点进行恢复。</p>
<div class="p">对于OceanProtect E6000备份一体机，使用复制副本执行恢复时，不支持在远端对该资源下其他副本进行复制。<ul><li id="informix-0068__li17135837179">指定副本恢复<ol type="a" id="informix-0068__ol1557419319814"><li id="informix-0068__li2552270813">依次选择年、月、天找到副本。<p id="informix-0068__p655297181"><a name="informix-0068__li2552270813"></a><a name="li2552270813"></a>当时间上显示<span><img id="informix-0068__image165521276810" src="zh-cn_image_0000002200012605.png"></span>，即表示该月、该天存在副本。</p>
</li><li id="informix-0068__li823411174131">在副本数据页面单击<span><img id="informix-0068__image202351117131311" src="zh-cn_image_0000002164611854.png"></span>，单击需要恢复的副本所在行的<span class="menucascade" id="informix-0068__menucascade1523511761316">“<span class="uicontrol" id="informix-0068__uicontrol142351917181319"><span id="informix-0068__text6235161721311">更多</span></span> &gt; <span class="uicontrol" id="informix-0068__uicontrol923518177132"> <span id="informix-0068__text6235101718132">恢复</span></span>”</span>。</li></ol>
</li><li>指定时间点恢复<ol type="a"><li id="informix-0068__li959101311142">依次选择年、月、天找到副本。<p id="informix-0068__p1260177131417"><a name="informix-0068__li959101311142"></a><a name="li959101311142"></a>当时间上显示<span><img id="informix-0068__image1860112751418" src="zh-cn_image_0000002200098205.png"></span>，即表示该月、该天存在副本。</p>
</li><li id="informix-0068__li126621921101419">在副本数据页面单击<span><img id="informix-0068__image15844465147" src="zh-cn_image_0000002164771570.png"></span>，在时间轴上选择蓝色覆盖区域的副本，单击<span class="menucascade" id="informix-0068__menucascade1290524751712">“<span class="uicontrol" id="informix-0068__uicontrol1905164771718"><span id="informix-0068__text79051447171711">更多</span></span> &gt; <span class="uicontrol" id="informix-0068__uicontrol15905164751711"> <span id="informix-0068__text790513478178">恢复</span></span>”</span>。<div class="note" id="informix-0068__note16282173320345"><img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span><div class="notebody"><ul id="informix-0068__ul192811733173416"><li id="informix-0068__li1528193316344">对于1.5.0版本，时间轴上最多仅展示100个副本，单击<span><img id="informix-0068__image128120337344" src="zh-cn_image_0000002164611862.png"></span>可以查看所有副本。</li><li id="informix-0068__li20281193310348">执行时间点恢复时，由于管理界面无法获取恢复时所使用的副本信息，因此，在恢复任务和相关的事件页面，用户无法看到该恢复任务的副本信息。</li></ul>
</div></div>
</li><li id="informix-0068__li16744134473419">系统弹出如下提示，确认提示内容后，单击<span class="uicontrol" id="informix-0068__uicontrol1674514449340">“<span id="informix-0068__text674544418348">关闭</span>”</span>。<p id="informix-0068__p127451344153420"><span><img id="informix-0068__image157922121489" src="zh-cn_image_0000002200098209.png"></span></p>
</li><li>恢复Informix/GBase 8s数据库至原位置或新位置。<div class="p">相关参数说明如<a href="#informix-0068__table4574123782">表1</a>。
<div class="tablenoborder"><a name="informix-0068__table4574123782"></a><a name="table4574123782"></a><table cellpadding="4" cellspacing="0" summary="" id="informix-0068__table4574123782" frame="border" border="1" rules="all"><caption><b>表1 </b>恢复Informix/GBase 8s数据库</caption><colgroup><col style="width:26.279999999999998%"><col style="width:73.72%"></colgroup><thead align="left"><tr id="informix-0068__row25721831285"><th align="left" class="cellrowborder" valign="top" width="26.279999999999998%" id="mcps1.3.4.2.4.2.2.1.2.1.4.1.2.2.3.1.1"><p id="informix-0068__p135727314812">参数</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="73.72%" id="mcps1.3.4.2.4.2.2.1.2.1.4.1.2.2.3.1.2"><p id="informix-0068__p195721433816">说明</p>
</th>
</tr>
</thead>
<tbody><tr id="informix-0068__row185721734816"><td class="cellrowborder" valign="top" width="26.279999999999998%" headers="mcps1.3.4.2.4.2.2.1.2.1.4.1.2.2.3.1.1 "><p id="informix-0068__p25726314815"><span id="informix-0068__text12572103487">恢复至</span></p>
</td>
<td class="cellrowborder" valign="top" width="73.72%" headers="mcps1.3.4.2.4.2.2.1.2.1.4.1.2.2.3.1.2 "><p id="informix-0068__p4572231481">选择恢复至<span class="uicontrol" id="informix-0068__uicontrol1857213885">“<span id="informix-0068__text857210316814">原位置</span>”</span>或<span class="uicontrol" id="informix-0068__uicontrol11572433820">“<span id="informix-0068__text10572163888">新位置</span>”</span>。</p>
</td>
</tr>
<tr id="informix-0068__row145731931182"><td class="cellrowborder" valign="top" width="26.279999999999998%" headers="mcps1.3.4.2.4.2.2.1.2.1.4.1.2.2.3.1.1 "><p id="informix-0068__p257303884"><span id="informix-0068__text105725311811">位置</span></p>
</td>
<td class="cellrowborder" valign="top" width="73.72%" headers="mcps1.3.4.2.4.2.2.1.2.1.4.1.2.2.3.1.2 "><p id="informix-0068__p95739311818">当选择恢复至<span class="uicontrol" id="informix-0068__uicontrol17573203189">“<span id="informix-0068__text175738314811">原位置</span>”</span>时，显示原位置。</p>
</td>
</tr>
<tr id="informix-0068__row132618115416"><td class="cellrowborder" valign="top" width="26.279999999999998%" headers="mcps1.3.4.2.4.2.2.1.2.1.4.1.2.2.3.1.1 "><p id="informix-0068__p978613518488">标签</p>
<div class="note" id="informix-0068__note1330311543247"><span class="notetitle"> 说明： </span><div class="notebody"><p id="informix-0068__p630385412417">仅1.6.0及后续版本存在此参数。</p>
</div></div>
</td>
<td class="cellrowborder" valign="top" width="73.72%" headers="mcps1.3.4.2.4.2.2.1.2.1.4.1.2.2.3.1.2 "><p id="informix-0068__p1340136163618">当选择恢复至<span class="uicontrol" id="informix-0068__uicontrol1047625163710">“新位置”</span>时，可以通过标签筛选待恢复的资源。</p>
</td>
</tr>
<tr id="informix-0068__row15574831983"><td class="cellrowborder" valign="top" width="26.279999999999998%" headers="mcps1.3.4.2.4.2.2.1.2.1.4.1.2.2.3.1.1 "><p id="informix-0068__p195746313810"><span id="informix-0068__text55741331987">目标实例</span></p>
</td>
<td class="cellrowborder" valign="top" width="73.72%" headers="mcps1.3.4.2.4.2.2.1.2.1.4.1.2.2.3.1.2 "><p id="informix-0068__p19574631083">当选择恢复至<span class="uicontrol" id="informix-0068__uicontrol1574531810">“<span id="informix-0068__text17574203487">新位置</span>”</span>时，选择需要恢复的目标实例。</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</li><li>单击<span class="uicontrol">“<span>确定</span>”</span>。</li></ol>
</li></ul>
</div>
</p></li><li id="informix-0068__li89644033414"><span>单击<span class="uicontrol" id="informix-0068__uicontrol14960418122">“确定”</span>。</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="informix-0065.html">恢复</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>